<me:UIGABEW x:Class="WPFExcelReport.TGBBS6x"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
     xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
     xmlns:me="clr-namespace:WPFExcelReport"  
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIGABEW.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIGABEW.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <WrapPanel>
            <TextBlock Text="{Binding Source={Localization:Translate Word=流水：}}" Margin="20,0,0,0"/>
            <TextBlock Text="{Binding GABBELEG}"/>
            <TextBlock Text="{Binding Source={Localization:Translate Word=日期：}}" Margin="20,0,0,0"/>
            <TextBlock Text="{Binding GABBUCHDAT}"/>
            <TextBlock Text="{Binding Source={Localization:Translate Word=时间：}}" Margin="20,0,0,0"/>
            <TextBlock Text="{Binding GABBUCHZEIT}"/>
        </WrapPanel>
        <DataGrid  Grid.Row="1" Grid.Column="0" 
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto" 
                   HeadersVisibility="Column"     
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgMaster" 
                    RowDetailsVisibilityMode="Visible"  Margin="0,0,0,0">
            <DataGrid.Columns>
                <DataGridTextColumn  Header="{Binding Source={Localization:Translate Word=批号}}" Binding="{Binding GABPARTIE }"/>
                <DataGridTextColumn  Header="{Binding Source={Localization:Translate Word=箱号}}" Binding="{Binding GABLBEHI }"/>
                <DataGridTextColumn  Header="{Binding Source={Localization:Translate Word=功能}}" Binding="{Binding GABBS}"/>
                <DataGridTextColumn  IsReadOnly="True"  Binding="{Binding Path=GABKG,Converter={StaticResource ResourceKey=d1000}}" Header="{Binding Source={Localization:Translate Word=重量}}"  Width="Auto"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</me:UIGABEW>
